home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / pcw.zip / QPRINTF.C < prev    next >
Text File  |  1990-01-16  |  2KB  |  44 lines

  1.  
  2. /************************************************************/
  3. /* File Id.                  Qprintf.C                      */
  4. /* Author.                   Stan Milam.                    */
  5. /* Date Written.             11/06/88.                      */
  6. /* Date Last Modified.                                      */
  7. /*                                                          */
  8. /*            (c) Copyright 1989-90 by Stan Milam           */
  9. /*                                                          */
  10. /* Comments:                                                */
  11. /************************************************************/
  12.  
  13. #include <stdio.h>
  14. #include <stdarg.h>
  15. #include "pcwproto.h"
  16. #define wrkstr PCWRKSTR
  17.  
  18. extern char wrkstr[];
  19.  
  20. int qprintf(int row, int col, int fcolor, int bcolor, char *format, ...)  {
  21.  
  22.    static va_list arglist;
  23.  
  24.    va_start(arglist, format);
  25.    vsprintf(wrkstr, format, arglist);
  26.    return(qputs(row, col, fcolor, bcolor, wrkstr));
  27. }
  28.  
  29. /***********************************************************/
  30. /*                          Qvprintf                       */
  31. /*                                                         */
  32. /* This function prints a formated string vertically on the*/
  33. /* screen.                                                 */
  34. /***********************************************************/
  35.  
  36. int qvprintf(int row, int col, int fcolor, int bcolor, char *format, ...) {
  37.  
  38.    va_list arglist;
  39.  
  40.    va_start(arglist, format);
  41.    vsprintf(wrkstr, format, arglist);
  42.    return(qvputs(row, col, fcolor, bcolor, wrkstr));
  43. }
  44.